﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace UygulamaYetkiService
{
    [Serializable]
    public class Iletisim
    {
        public Iletisim()
        {
        }

        private long id;
        private string adres;
        private string telefon;
        private string fax;
        private string mail;
        private string telefonGsm;

        public long ID
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }

        public string Adres
        {
            get
            {
                return adres;
            }
            set
            {
                adres = value;
            }
        }

        public string Telefon
        {
            get
            {
                return telefon;
            }
            set
            {
                telefon = value;
            }
        }

        public string Fax
        {
            get
            {
                return fax;
            }
            set
            {
                fax = value;
            }
        }

        public string Mail
        {
            get
            {
                return mail;
            }
            set
            {
                mail = value;
            }
        }

        public string TelefonGsm
        {
            get
            {
                return telefonGsm;
            }
            set
            {
                telefonGsm = value;
            }
        }

        public Iletisim(DataRow dr)
        {
            ID = Convert.ToInt64(dr["ID"]);
            Adres = dr["Adres"].ToString();
            Telefon = dr["Telefon"].ToString();
            fax = dr["fax"].ToString();
            Mail = dr["Mail"].ToString();
            TelefonGsm = dr["TelefonGsm"].ToString();
        }
    }
}
